#define _CRT_SECURE_NO_WARNINGS 1
#include "SList.h"

int main()
{
	SList* plist = NULL;
	//SLPushBack(&plist, 1);
	//SLPushBack(&plist, 2);
	//SLPushBack(&plist, 3);
	//SLPushBack(&plist, 4);
	//SLPushBack(&plist, 5);

	//SLPrint(plist);

	//SLPopBack(&plist);
	//SLPrint(plist);
	//SLPopBack(&plist);
	//SLPrint(plist);
	//SLPopBack(&plist);
	//SLPrint(plist);
	//SLPopBack(&plist);
	//SLPrint(plist);

	SLPushFront(&plist, 1);
	SLPushFront(&plist, 2);
	SLPushFront(&plist, 3);
	SLPushFront(&plist, 4);
	SLPrint(plist);

	SLPopFront(&plist);
	SLPrint(plist);

	SLPopFront(&plist);
	SLPrint(plist);

	SLPopFront(&plist);
	SLPrint(plist);

	SLPopFront(&plist);
	SLPrint(plist);


	SLDestroy(plist);
	return 0;
}